import os
from tornado.options import define, options

define("port", default=8002, help="run on the given port", type=int)

define("mysql_host", default="dyfbigmoe6.mysql.rds.aliyuncs.com", help="blog database host")
define("mysql_database", default="dyf", help="blog database name")
define("mysql_user", default="teq", help="root database user")
define("mysql_password", default="teq123456", help="root database password")

# define("mysql_host", default="localhost", help="blog database host")
# define("mysql_database", default="dyf", help="blog database name")
# define("mysql_user", default="root", help="root database user")
# define("mysql_password", default="", help="root database password")
settings = {}
settings['debug'] = True
settings['root_path'] = os.path.join(os.path.dirname(os.path.abspath(__file__)), "")
settings['template_path'] = os.path.join(settings['root_path'], "template")
settings['static_path'] = os.path.join(settings['root_path'], "static")

settings['xsrf_cookies'] = False
settings['cookie_secret'] = "EEB1C2AB05DDF04D35BADFDF776DD4B0"

